package 滑动窗口最大值;

public class Test {
    public static void main(String[] args) {
        int[][] tests = {
                {1},
                {1, 3, -1, -3, 5, 3, 6, 7},
                {9, 11},
                {4, -2},
                {4, 5, 1, 2, 1}
        };
        int[] ks = {1, 3, 2, 2, 4};

        Solution solution = new Solution();
        for (int i = 0; i < tests.length; i++) {
            int[] result = solution.maxSlidingWindow(tests[i], ks[i]);
            System.out.print("Test case " + (i + 1) + ": ");
            for (int j = 0; j < result.length; j++) {
                System.out.print(result[j] + " ");
            }
            System.out.println();
        }
    }
}
